package com.zdxlz.desensitize.domain;

import com.zdxlz.desensitize.constant.ColumnType;
import com.zdxlz.desensitize.constant.DesensitizeType;

import java.io.Serializable;
import java.util.Date;

/**
 * 脱敏规则
 **/
public class DesensitizeRule implements Serializable {
    public ColumnType getColumn() {
        return column;
    }

    public void setColumn(ColumnType column) {
        this.column = column;
    }

    public DesensitizeType getType() {
        return type;
    }

    public void setType(DesensitizeType type) {
        this.type = type;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    private static final long serialVersionUID = -331598507384649590L;
    /**
     * 列名
     */
    private ColumnType column;

    /**
     * 脱敏类型
     */
    private DesensitizeType type;

    /**
     * 脱敏类型的值
     */
    private Integer value;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 排序
     */
    private Integer sort;


    public DesensitizeRule(ColumnType column, DesensitizeType type) {
        this.column = column;
        this.type = type;
    }

    public DesensitizeRule() {
    }

    public DesensitizeRule(ColumnType column, DesensitizeType type, Integer value, Date createTime, Integer sort) {
        this.column = column;
        this.type = type;
        this.value = value;
        this.createTime = createTime;
        this.sort = sort;
    }
}
